package com.ruoyi.project.onlineExperimentOrder.mapper;

import com.ruoyi.project.onlineExperimentOrder.domain.OnlineExperimentOrder;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @ClassName OnlineExperimentOrderMapper
 * @Description TODO
 * @Author lvyongwei
 * @Date 2020-07-27 15:45
 **/
@Mapper
public interface OnlineExperimentOrderMapper {

    /**
     * 学生预约虚拟实验方法
     * @param onlineExperimentOrder
     * @return
     */
    public boolean onlineExperimentOrder(OnlineExperimentOrder onlineExperimentOrder);

    /**
     * 判断学生是否已经预约
     *       若已经预约，再次预约则是更新预约
     * @param onlineExperimentOrder
     * @return
     */
    public OnlineExperimentOrder getOnlineExperimentOrder(OnlineExperimentOrder onlineExperimentOrder);

    /**
     * 学生更新预约虚拟实验方法
     * @param onlineExperimentOrder
     * @return
     */
    public boolean updateOrder(OnlineExperimentOrder onlineExperimentOrder);

    /**
     * 获取预约的列表
     * @param onlineExperimentOrder
     * @return
     */
    public List<OnlineExperimentOrder> getOrderList(OnlineExperimentOrder onlineExperimentOrder);

    /**
     * 教师审批操作
     * @param onlineExperimentOrder
     * @return
     */
    public boolean approve(OnlineExperimentOrder onlineExperimentOrder);

    /**
     * 學生撤銷預約
     * @param onlineExperimentOrder
     * @return
     */
    public boolean revocation(OnlineExperimentOrder onlineExperimentOrder);

}
